import axios from 'axios'
import qs from 'qs'

export function login(params?: any) {
  return axios({
    url: '/api/login',
    method: 'get',
    params: params
  })
}

export function logOut(data?: any) {
  return axios({
    url: '/api/logOut',
    method: 'get',
    data: data ? null : data
  })
}
